package com.guaoran.study.javaagent;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.retry.annotation.EnableRetry;

import java.lang.instrument.Instrumentation;

/**
 * @see {@url https://www.jianshu.com/p/b72f66da679f}
 * @Auth guaoran
 * @Date 2020/9/9 上午11:35.
 */
@SpringBootApplication
@EnableRetry
public class AgentDemo {
    public static void premain(String agentArgs, Instrumentation inst){
        System.out.println("agentArgs="+agentArgs+",inst="+inst);
    }
    public static void premain(String agentArgs){
        System.out.println("agentArgs="+agentArgs);
    }

    public static void main(String[] args) {
        SpringApplication.run(AgentDemo.class, args);
    }

}
